import java.awt.BorderLayout;
import java.awt.EventQueue;
import java.text.ParseException;
import java.text.SimpleDateFormat;

import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.border.EmptyBorder;
import javax.swing.JMenuBar;
import javax.swing.JMenuItem;
import javax.swing.JMenu;
import javax.swing.JLabel;
import javax.swing.ImageIcon;
import javax.swing.JOptionPane;
import javax.swing.SwingConstants;
import java.awt.Color;
import javax.swing.border.BevelBorder;
import javax.swing.JTabbedPane;
import java.awt.ComponentOrientation;
import java.awt.Component;
import java.awt.FlowLayout;
import java.awt.Cursor;
import java.awt.Font;

import javax.swing.JToggleButton;
import javax.swing.JLayeredPane;
import javax.swing.JSplitPane;
import java.awt.GridBagLayout;
import java.awt.GridBagConstraints;
import java.awt.Insets;

import javax.swing.border.Border;
import javax.swing.border.CompoundBorder;
import javax.swing.border.LineBorder;
import javax.swing.ButtonGroup;
import javax.swing.BoxLayout;
import javax.swing.JTextField;
import javax.swing.JButton;
import javax.swing.JComboBox;
import javax.swing.JRadioButton;
import java.awt.event.ActionListener;
import java.awt.event.ActionEvent;
import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent;
import java.awt.CardLayout;
import javax.swing.JList;
import javax.swing.border.SoftBevelBorder;
import javax.swing.border.TitledBorder;
import javax.swing.text.MaskFormatter;
import javax.swing.*;
import com.toedter.calendar.JCalendar;
import java.awt.Button;
import java.util.ArrayList;
import java.util.Date;

import javax.swing.JFormattedTextField;
import javax.swing.JInternalFrame;
import com.toedter.calendar.JDateChooser;
import com.toedter.components.JLocaleChooser;
import java.awt.event.FocusAdapter;
import java.awt.event.FocusEvent;
import java.awt.event.ItemListener;
import java.awt.event.ItemEvent;
import org.eclipse.wb.swing.FocusTraversalOnArray;
import java.awt.event.KeyAdapter;
import java.awt.event.KeyEvent;
import javax.swing.event.ListSelectionListener;
import javax.swing.event.ListSelectionEvent;


public class Principal extends JFrame {

	private JPanel contentPane;
	private final JMenuBar menuBar = new JMenuBar();
	private final JMenu mnArchivo = new JMenu("Archivo");
	private final JMenu mnEditar = new JMenu("Editar");
	private final JLabel label = new JLabel("");
	private final JTabbedPane tabbedPane = new JTabbedPane(JTabbedPane.TOP);
	private final JPanel pnlPaciente = new JPanel();
	private final JPanel pnlAgenda = new JPanel();
	private final JPanel pnlPersonal = new JPanel();
	private final JPanel panelBotones = new JPanel();
	private final JToggleButton btnGeneral = new JToggleButton("General");
	private final JToggleButton btnCitas = new JToggleButton("Citas");
	private final JToggleButton btnHistorial = new JToggleButton("Historial Clinico");
	private final JPanel pnlContenido = new JPanel();
	private final JPanel pnlGeneral = new JPanel();
	private final JPanel pnlCitas = new JPanel();
	private final JPanel pnlHistorial = new JPanel();
	private final ButtonGroup buttonGroup_1 = new ButtonGroup();
	private final JPanel pnlBuscar = new JPanel();
	private final JLabel lblNewLabel = new JLabel("Nombre: ");
	private final JLabel lblApellidos = new JLabel("Apellidos: ");
	private final JTextField txtNombB = new JTextField();
	private final JTextField txtApeB = new JTextField();
	private final JButton btnBuscar = new JButton("Buscar");
	private final JList listCli = new JList();
	private final JPanel panel = new JPanel();
	private final JLabel lblNombre = new JLabel("Nombre: ");
	private final JLabel lblApellidos_1 = new JLabel("Apellidos: ");
	private final JLabel lblFechaDeNacimiento = new JLabel("Fecha de Nacimiento: ");
	private final JLabel lblCalle = new JLabel("Calle: ");
	private final JLabel lblCp = new JLabel("CP: ");
	private final JLabel lblTelefono = new JLabel("Telefono: ");
	private final JTextField txtNombre = new JTextField();
	private final JTextField txtApe = new JTextField();
	private final JTextField txtcalle = new JTextField();
	private final JLabel lblNumero = new JLabel("Numero: ");
	private final JTextField txtPo = new JTextField();
	private final JLabel lblPiso = new JLabel("Piso: ");
	private final JTextField txtPiso = new JTextField();
	private final JLabel lblPoblacion = new JLabel("Población: ");
	private final JTextField txtNu = new JTextField();
	private final JLabel lblProvincia = new JLabel("Provincia: ");
	private final JTextField txtProvincia = new JTextField();
	private final JLabel lblSexo = new JLabel("Sexo: ");
	private final JComboBox cmbSexo = new JComboBox();
	
	
	private final JCalendar cal=new JCalendar();
	private final JButton btnAadir = new JButton("Nuevo Cliente");
	private final JButton btnModificar = new JButton("Modificar");
	private final JButton btnEliminar = new JButton("Eliminar");
	private final JSplitPane splitPane = new JSplitPane();
	private final JPanel panel_1 = new JPanel();
	private final JPanel panel_2 = new JPanel();
	private final JLabel lblNombre_1 = new JLabel("Nombre:");
	private final JLabel lblApellidos_2 = new JLabel("Apellidos: ");
	private final JTextField txtNomCita = new JTextField();
	private final JTextField txtApeCita = new JTextField();
	private final JLabel lblFechaDeNacimiento_1 = new JLabel("Fecha de Nacimiento: ");
	private final JTextField txtFechaCita = new JTextField();
	private final JTabbedPane tabbedPane_1 = new JTabbedPane(JTabbedPane.TOP);
	private final JPanel pnlPaso1 = new JPanel();
	private final JPanel pnlPaso2 = new JPanel();
	private final JLabel lblDrdra = new JLabel("Dr./Dra.  responsable:");
	private final JLabel lblTipoDeConsulta = new JLabel("Tipo de Consulta");
	private final JLabel lblMotivo = new JLabel("Motivo de Consulta:");
	private final JComboBox comboBox_1 = new JComboBox();
	private final JComboBox comboBox_2 = new JComboBox();
	private final JTextField txtMotivo = new JTextField();
	private final JButton btnSiguiente = new JButton("Siguiente >>");
	private final JLabel lblIndique = new JLabel("Indique las preferencias de fecha y hora para su cita: ");
	private final JLabel lblFe = new JLabel("Fecha: ");
	private final JLabel lblTurno = new JLabel("Turno: ");
	private final JRadioButton rdbtnCualquiera = new JRadioButton("Cualquiera");
	private final JRadioButton rdbtnMaana = new JRadioButton("Mañana");
	private final JRadioButton rdbtnTarde = new JRadioButton("Tarde");
	private final JTextField textField_15 = new JTextField();
	private final JButton button_1 = new JButton("<< Anterior");
	private final JButton btnSiguiente_1 = new JButton("Siguiente >>");
	private final JButton btnNewButton = new JButton("");
	private final JPanel pnlPaso3 = new JPanel();
	private final JLabel lblNewLabel_2 = new JLabel("Seleccione la hora de su cita entre las disponibles: \n");
	private final JPanel panel_4 = new JPanel();
	private final JRadioButton radioButton = new JRadioButton("09:00");
	private final JRadioButton radioButton_1 = new JRadioButton("10:00");
	private final JRadioButton radioButton_2 = new JRadioButton("11:00");
	private final JRadioButton radioButton_3 = new JRadioButton("12:00");
	private final JRadioButton radioButton_4 = new JRadioButton("13:00");
	private final JRadioButton rdbtnNewRadioButton = new JRadioButton("16:00");
	private final JRadioButton radioButton_5 = new JRadioButton("17:00");
	private final JRadioButton radioButton_6 = new JRadioButton("18:00");
	private final JRadioButton radioButton_7 = new JRadioButton("19:00");
	private final JRadioButton radioButton_8 = new JRadioButton("20:00");
	private final ButtonGroup buttonGroup = new ButtonGroup();
	private final JButton button_2 = new JButton("<< Anterior");
	private final JButton btnSiguiente_2 = new JButton("Aceptar\n");
	private final JSplitPane splitPane_1 = new JSplitPane();
	private final JPanel panel_3 = new JPanel();
	private final JPanel panel_5 = new JPanel();
	private final JLabel label_1 = new JLabel("Nombre:");
	private final JTextField txtNomHis = new JTextField();
	private final JLabel label_2 = new JLabel("Fecha de Nacimiento: ");
	private final JTextField txtFechaHis = new JTextField();
	private final JLabel label_3 = new JLabel("Apellidos: ");
	private final JTextField txtApeHis = new JTextField();
	private final JPanel panel_6 = new JPanel();
	private final JButton btnNewButton_1 = new JButton("Listar Informes");
	private final JButton btnAadirInforme = new JButton("Añadir Informe");
	private JFormattedTextField ftxtDNIB = new JFormattedTextField();
	private JFormattedTextField ftxtCP = new JFormattedTextField();
	private JFormattedTextField ftxtTlf = new JFormattedTextField();
	private final JButton btnListarClientes = new JButton("Listar Clientes");
	private final JDateChooser dateChooser = new JDateChooser();

	private final Persona p1=new Persona("Marbel", "Ortiz", "057120988-J", "Bachiller", "Almagro", "Ciudad Real", "19/11/1987", "Mujer", "1D", "13270", "15", "4567645");
	private final Persona p2=new Persona("Luis", "Ortega", "03930876-K", "Bachiller", "Almagro", "Ciudad Real", "19/06/1987", "Hombre", "1D", "13270", "15", "610376544");
	private final Persona p3=new Persona("Maria Luisa", "Ortega", "057120988J-", "Bachiller", "Almagro", "Ciudad Real", "19/12/1987", "Mujer", "1D", "13270", "15", "4567645");

	//private final Sanitario s1=new Sanitario("Juan","Ortiz","123");
	//private final Sanitario s2=new Sanitario("Pepe","Ortiz","111");

	private final ArrayList<Persona> lpers=new ArrayList<Persona>();
	//private final ArrayList<Sanitario> lsan=new ArrayList<Sanitario>();
    DefaultListModel modeloListaClientes = new DefaultListModel();

	private final JLabel lblDNI = new JLabel("DNI: ");
	private JFormattedTextField ftextDNI = new JFormattedTextField();
	private JFormattedTextField ftxtDNI;
	private final JMenuItem mntmNuevoCliente = new JMenuItem("Nuevo Cliente");
	private final JButton btnCancelar = new JButton("Cancelar");
	private final JButton btnGuardar = new JButton("Guardar");
	private Border bordeRojo =BorderFactory.createLineBorder(Color.RED);
	private Border bordeVerde = BorderFactory.createLineBorder(Color.GREEN);

	private final SimpleDateFormat date= new SimpleDateFormat("dd/MM/yyyy");
	private final JMenuItem mntmCancelarAccin = new JMenuItem("Cancelar Acción");
	private final JSeparator separator = new JSeparator();
	private final JMenu mnTamaoDeLa = new JMenu("Tamaño de la Fuente");
	private final JRadioButtonMenuItem rdbtnmntmTamaoPequeo = new JRadioButtonMenuItem("Tamaño Pequeño");
	private final JRadioButtonMenuItem rdbtnmntmTamaoNormal = new JRadioButtonMenuItem("Tamaño Normal");
	private final JRadioButtonMenuItem rdbtnmntmTamaoGrande = new JRadioButtonMenuItem("Tamaño Grande");
	private final ButtonGroup buttonGroup_2 = new ButtonGroup();


	
	/**
	 * Launch the application.
	 */
	/*public static void main(String[] args) {
		EventQueue.invokeLater(new Runnable() {
			public void run() {
				try {
					Principal frame = new Principal();
					frame.setVisible(true);
				} catch (Exception e) {
					e.printStackTrace();
				}
			}
		});
	}*/

	/*public Persona buscar(ArrayList<Persona> lpers){
		
		return p;
	}*/
	/**
	 * Create the frame.
	 */
	public Principal() {
		lpers.add(p2);
		lpers.add(p3);
		lpers.add(p1);

		//lsan.add(s1);
		//lsan.add(s2);
		dateChooser.setDateFormatString("dd/MM/yyyy");

		textField_15.setColumns(10);
		txtMotivo.setColumns(10);
		txtFechaCita.setEditable(false);
		txtFechaCita.setColumns(10);
		txtApeCita.setEditable(false);
		txtApeCita.setColumns(10);
		txtNomCita.setEditable(false);
		txtNomCita.setColumns(10);
		txtApe.addFocusListener(new FocusListener());
		txtApe.setEnabled(false);
		txtApe.setColumns(10);
		txtNombre.addFocusListener(new FocusListener());
		txtNombre.setEnabled(false);
		txtNombre.setColumns(10);
		txtApeB.addKeyListener(new TxtApeBKeyListener());
		txtApeB.addFocusListener(new FocusListener());
		txtApeB.setEnabled(false);
		txtApeB.setColumns(10);
		txtNombB.addKeyListener(new TxtNombBKeyListener());
		txtNombB.addFocusListener(new FocusListener());
		txtNombB.setEnabled(false);
		txtNombB.setColumns(10);
		
		rdbtnmntmTamaoPequeo.setFont(new Font(rdbtnmntmTamaoPequeo.getFont().getFontName(),rdbtnmntmTamaoPequeo.getFont().getStyle(),10)); 
		rdbtnmntmTamaoNormal.setFont(new Font(rdbtnmntmTamaoNormal.getFont().getFontName(),rdbtnmntmTamaoNormal.getFont().getStyle(),13)); 
		rdbtnmntmTamaoGrande.setFont(new Font(rdbtnmntmTamaoGrande.getFont().getFontName(),rdbtnmntmTamaoGrande.getFont().getStyle(),15)); 

		

		setTitle("FisioSoft");
		setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		setExtendedState(JFrame.MAXIMIZED_BOTH);
		//setBounds(100, 100, 1246, 724);
		
		{
			menuBar.setBackground(Color.LIGHT_GRAY);
			setJMenuBar(menuBar);
		}
		{
			mnArchivo.setBackground(Color.LIGHT_GRAY);
			menuBar.add(mnArchivo);
		}
		{
			mntmNuevoCliente.addActionListener(new BtnAadirActionListener());
			btnAadir.setSelected(true);

			mnArchivo.add(mntmNuevoCliente);
		}
		{
			mnArchivo.add(separator);
		}
		{
			mntmCancelarAccin.addActionListener(new BtnCancelarActionListener());
			mnArchivo.add(mntmCancelarAccin);
		}
		{
			mnEditar.setBackground(Color.LIGHT_GRAY);
			menuBar.add(mnEditar);
		}
		{
			mnEditar.add(mnTamaoDeLa);
		}
		{
			buttonGroup_2.add(rdbtnmntmTamaoPequeo);
			rdbtnmntmTamaoPequeo.addActionListener(new RdbtnmntmTamaoPequeoActionListener());
			mnTamaoDeLa.add(rdbtnmntmTamaoPequeo);
		}
		{
			buttonGroup_2.add(rdbtnmntmTamaoNormal);
			rdbtnmntmTamaoNormal.addActionListener(new RdbtnmntmTamaoNormalActionListener_1());
			mnTamaoDeLa.add(rdbtnmntmTamaoNormal);
		}
		{
			buttonGroup_2.add(rdbtnmntmTamaoGrande);
			rdbtnmntmTamaoGrande.addActionListener(new RdbtnmntmTamaoGrandeActionListener());
			mnTamaoDeLa.add(rdbtnmntmTamaoGrande);
		}
		contentPane = new JPanel();
		contentPane.setBackground(Color.WHITE);
		contentPane.setLayout(new BorderLayout(0, 0));
		setContentPane(contentPane);
		{
			label.setForeground(Color.WHITE);
			label.setBackground(Color.WHITE);
			label.setHorizontalAlignment(SwingConstants.CENTER);
			label.setIcon(new ImageIcon(Principal.class.getResource("/Imagenes/icono.png")));
			contentPane.add(label, BorderLayout.NORTH);
		}
		{
			contentPane.add(tabbedPane, BorderLayout.CENTER);
		}
		{
			tabbedPane.addTab("Pacientes", null, pnlPaciente, null);
		}
		pnlPaciente.setLayout(new BorderLayout(0, 0));
		{
			panelBotones.setBorder(new LineBorder(new Color(0, 0, 0)));
			pnlPaciente.add(panelBotones, BorderLayout.WEST);
		}
		GridBagLayout gbl_panelBotones = new GridBagLayout();
		gbl_panelBotones.columnWidths = new int[]{0, 0};
		gbl_panelBotones.rowHeights = new int[]{0, 8, 0, 8, 0, 0, 0, 0, 0, 0, 0};
		gbl_panelBotones.columnWeights = new double[]{0.0, Double.MIN_VALUE};
		gbl_panelBotones.rowWeights = new double[]{0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, Double.MIN_VALUE};
		panelBotones.setLayout(gbl_panelBotones);
		{
			GridBagConstraints gbc_btnGeneral = new GridBagConstraints();
			gbc_btnGeneral.fill = GridBagConstraints.BOTH;
			gbc_btnGeneral.insets = new Insets(0, 0, 5, 0);
			gbc_btnGeneral.gridx = 0;
			gbc_btnGeneral.gridy = 0;
			buttonGroup_1.add(btnGeneral);
			btnGeneral.setSelected(true);
			btnGeneral.addActionListener(new ToggleButtonActionListener());
			panelBotones.add(btnGeneral, gbc_btnGeneral);
		}
		{
			GridBagConstraints gbc_btnCitas = new GridBagConstraints();
			gbc_btnCitas.fill = GridBagConstraints.HORIZONTAL;
			gbc_btnCitas.insets = new Insets(0, 0, 5, 0);
			gbc_btnCitas.gridx = 0;
			gbc_btnCitas.gridy = 2;
			buttonGroup_1.add(btnCitas);
			btnCitas.setEnabled(false);
			btnCitas.addActionListener(new ToggleButton_1ActionListener());
			panelBotones.add(btnCitas, gbc_btnCitas);
		}
		{
			GridBagConstraints gbc_btnHistorial = new GridBagConstraints();
			gbc_btnHistorial.insets = new Insets(0, 0, 5, 0);
			gbc_btnHistorial.gridx = 0;
			gbc_btnHistorial.gridy = 4;
			buttonGroup_1.add(btnHistorial);
			btnHistorial.setEnabled(false);
			btnHistorial.addActionListener(new BtnHistorialActionListener());
			panelBotones.add(btnHistorial, gbc_btnHistorial);
		}
		{
			pnlPaciente.add(pnlContenido, BorderLayout.CENTER);
		}
		pnlContenido.setLayout(new CardLayout(0, 0));
		{
			pnlContenido.add(pnlGeneral, "Panel1");
		}
		pnlGeneral.setLayout(null);
		{
			pnlBuscar.setBounds(0, 36, 1117, 163);
			pnlBuscar.setBorder(new TitledBorder(null, "Buscar Cliente", TitledBorder.LEADING, TitledBorder.TOP, null, null));
			pnlGeneral.add(pnlBuscar);
		}
		GridBagLayout gbl_pnlBuscar = new GridBagLayout();
		gbl_pnlBuscar.columnWidths = new int[]{100, 82, 188, 0, 112, 186, 0, 256, 20, 0};
		gbl_pnlBuscar.rowHeights = new int[]{20, 0, 0, 0, 0, 0};
		gbl_pnlBuscar.columnWeights = new double[]{0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, Double.MIN_VALUE};
		gbl_pnlBuscar.rowWeights = new double[]{0.0, 1.0, 1.0, 1.0, 0.0, Double.MIN_VALUE};
		pnlBuscar.setLayout(gbl_pnlBuscar);
		{
			GridBagConstraints gbc_lblNewLabel = new GridBagConstraints();
			gbc_lblNewLabel.anchor = GridBagConstraints.EAST;
			gbc_lblNewLabel.fill = GridBagConstraints.VERTICAL;
			gbc_lblNewLabel.insets = new Insets(0, 0, 5, 5);
			gbc_lblNewLabel.gridx = 1;
			gbc_lblNewLabel.gridy = 1;
			pnlBuscar.add(lblNewLabel, gbc_lblNewLabel);
		}
		{
			GridBagConstraints gbc_txtNombB = new GridBagConstraints();
			gbc_txtNombB.insets = new Insets(0, 0, 5, 5);
			gbc_txtNombB.fill = GridBagConstraints.HORIZONTAL;
			gbc_txtNombB.gridx = 2;
			gbc_txtNombB.gridy = 1;
			pnlBuscar.add(txtNombB, gbc_txtNombB);
		}
		{
			GridBagConstraints gbc_listCli = new GridBagConstraints();
			gbc_listCli.gridwidth = 2;
			gbc_listCli.gridheight = 3;
			gbc_listCli.insets = new Insets(0, 0, 5, 5);
			gbc_listCli.fill = GridBagConstraints.BOTH;
			gbc_listCli.gridx = 5;
			gbc_listCli.gridy = 1;
			listCli.addListSelectionListener(new ListCliListSelectionListener());
			listCli.setEnabled(false);
			listCli.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
			listCli.setBorder(new LineBorder(new Color(0, 0, 0), 1, true));
			pnlBuscar.add(listCli, gbc_listCli);
		}
		{
			GridBagConstraints gbc_lblApellidos = new GridBagConstraints();
			gbc_lblApellidos.anchor = GridBagConstraints.EAST;
			gbc_lblApellidos.insets = new Insets(0, 0, 5, 5);
			gbc_lblApellidos.gridx = 1;
			gbc_lblApellidos.gridy = 2;
			pnlBuscar.add(lblApellidos, gbc_lblApellidos);
		}
		{
			GridBagConstraints gbc_txtApeB = new GridBagConstraints();
			gbc_txtApeB.insets = new Insets(0, 0, 5, 5);
			gbc_txtApeB.fill = GridBagConstraints.HORIZONTAL;
			gbc_txtApeB.gridx = 2;
			gbc_txtApeB.gridy = 2;
			pnlBuscar.add(txtApeB, gbc_txtApeB);
		}
		{
			GridBagConstraints gbc_btnListarClientes = new GridBagConstraints();
			gbc_btnListarClientes.insets = new Insets(0, 0, 5, 5);
			gbc_btnListarClientes.gridx = 7;
			gbc_btnListarClientes.gridy = 3;
			btnListarClientes.addActionListener(new BtnListarClientesActionListener());
			btnListarClientes.setEnabled(false);
			pnlBuscar.add(btnListarClientes, gbc_btnListarClientes);
		}
		{
			panel.setBounds(0, 200, 1117, 324);
			panel.setBorder(new TitledBorder(null, "Informaci\u00F3n", TitledBorder.LEADING, TitledBorder.TOP, null, null));
			pnlGeneral.add(panel);
			
		}
		GridBagLayout gbl_panel = new GridBagLayout();
		gbl_panel.columnWidths = new int[]{0, 203, 179, 85, 0, 134, 0, 17, 20, 0, 0, 0};
		gbl_panel.rowHeights = new int[]{15, 0, 0, 0, 0, 0, 0, 0, 26, 30, 0, 0};
		gbl_panel.columnWeights = new double[]{0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, Double.MIN_VALUE};
		gbl_panel.rowWeights = new double[]{0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, Double.MIN_VALUE};
		panel.setLayout(gbl_panel);
		{
			GridBagConstraints gbc_lblNombre = new GridBagConstraints();
			gbc_lblNombre.anchor = GridBagConstraints.EAST;
			gbc_lblNombre.insets = new Insets(0, 0, 5, 5);
			gbc_lblNombre.gridx = 1;
			gbc_lblNombre.gridy = 1;
			panel.add(lblNombre, gbc_lblNombre);
		}
		{
			GridBagConstraints gbc_txtNombre = new GridBagConstraints();
			gbc_txtNombre.insets = new Insets(0, 0, 5, 5);
			gbc_txtNombre.fill = GridBagConstraints.HORIZONTAL;
			gbc_txtNombre.gridx = 2;
			gbc_txtNombre.gridy = 1;
			panel.add(txtNombre, gbc_txtNombre);
		}
		{
			GridBagConstraints gbc_lblFechaDeNacimiento = new GridBagConstraints();
			gbc_lblFechaDeNacimiento.anchor = GridBagConstraints.EAST;
			gbc_lblFechaDeNacimiento.insets = new Insets(0, 0, 5, 5);
			gbc_lblFechaDeNacimiento.gridx = 4;
			gbc_lblFechaDeNacimiento.gridy = 1;
			panel.add(lblFechaDeNacimiento, gbc_lblFechaDeNacimiento);
		}
		{
			GridBagConstraints gbc_dateChooser = new GridBagConstraints();
			gbc_dateChooser.insets = new Insets(0, 0, 5, 5);
			gbc_dateChooser.fill = GridBagConstraints.BOTH;
			gbc_dateChooser.gridx = 5;
			gbc_dateChooser.gridy = 1;
			dateChooser.getCalendarButton().setAlignmentY(Component.TOP_ALIGNMENT);
			dateChooser.setEnabled(false);
			panel.add(dateChooser, gbc_dateChooser);
		}
		{
			GridBagConstraints gbc_lblApellidos_1 = new GridBagConstraints();
			gbc_lblApellidos_1.anchor = GridBagConstraints.EAST;
			gbc_lblApellidos_1.insets = new Insets(0, 0, 5, 5);
			gbc_lblApellidos_1.gridx = 1;
			gbc_lblApellidos_1.gridy = 2;
			panel.add(lblApellidos_1, gbc_lblApellidos_1);
		}
		{ 
			GridBagConstraints gbc_txtApe = new GridBagConstraints();
			gbc_txtApe.insets = new Insets(0, 0, 5, 5);
			gbc_txtApe.fill = GridBagConstraints.HORIZONTAL;
			gbc_txtApe.gridx = 2;
			gbc_txtApe.gridy = 2;
			panel.add(txtApe, gbc_txtApe);
		}
		{
			GridBagConstraints gbc_lblSexo = new GridBagConstraints();
			gbc_lblSexo.anchor = GridBagConstraints.EAST;
			gbc_lblSexo.insets = new Insets(0, 0, 5, 5);
			gbc_lblSexo.gridx = 4;
			gbc_lblSexo.gridy = 2;
			panel.add(lblSexo, gbc_lblSexo);
		}
		{
			GridBagConstraints gbc_cmbSexo = new GridBagConstraints();
			gbc_cmbSexo.insets = new Insets(0, 0, 5, 5);
			gbc_cmbSexo.fill = GridBagConstraints.HORIZONTAL;
			gbc_cmbSexo.gridx = 5;
			gbc_cmbSexo.gridy = 2;
			cmbSexo.setEnabled(false);
			cmbSexo.setModel(new DefaultComboBoxModel(new String[] {"Mujer", "Hombre"}));
			panel.add(cmbSexo, gbc_cmbSexo);
		}
		{
			GridBagConstraints gbc_lblDNI = new GridBagConstraints();
			gbc_lblDNI.anchor = GridBagConstraints.EAST;
			gbc_lblDNI.insets = new Insets(0, 0, 5, 5);
			gbc_lblDNI.gridx = 1;
			gbc_lblDNI.gridy = 3;
			panel.add(lblDNI, gbc_lblDNI);
		}
		{
			GridBagConstraints gbc_ftxtDNI = new GridBagConstraints();
			gbc_ftxtDNI.insets = new Insets(0, 0, 5, 5);
			gbc_ftxtDNI.fill = GridBagConstraints.HORIZONTAL;
			gbc_ftxtDNI.gridx = 2;
			gbc_ftxtDNI.gridy = 3;
			ftxtDNI.setEnabled(false);
			panel.add(ftxtDNI, gbc_ftxtDNI);
		}
		{
			GridBagConstraints gbc_lblCalle = new GridBagConstraints();
			gbc_lblCalle.anchor = GridBagConstraints.EAST;
			gbc_lblCalle.insets = new Insets(0, 0, 5, 5);
			gbc_lblCalle.gridx = 1;
			gbc_lblCalle.gridy = 4;
			panel.add(lblCalle, gbc_lblCalle);
		}
		txtcalle.addFocusListener(new FocusListener());
		txtcalle.setEnabled(false);
		txtcalle.setColumns(10);
		{
			GridBagConstraints gbc_txtcalle = new GridBagConstraints();
			gbc_txtcalle.insets = new Insets(0, 0, 5, 5);
			gbc_txtcalle.fill = GridBagConstraints.HORIZONTAL;
			gbc_txtcalle.gridx = 2;
			gbc_txtcalle.gridy = 4;
			panel.add(txtcalle, gbc_txtcalle);
		}
		{
			GridBagConstraints gbc_lblTelefono = new GridBagConstraints();
			gbc_lblTelefono.anchor = GridBagConstraints.EAST;
			gbc_lblTelefono.insets = new Insets(0, 0, 5, 5);
			gbc_lblTelefono.gridx = 4;
			gbc_lblTelefono.gridy = 4;
			panel.add(lblTelefono, gbc_lblTelefono);
		}
		{
			GridBagConstraints gbc_ftxtTlf = new GridBagConstraints();
			gbc_ftxtTlf.insets = new Insets(0, 0, 5, 5);
			gbc_ftxtTlf.fill = GridBagConstraints.HORIZONTAL;
			gbc_ftxtTlf.gridx = 5;
			gbc_ftxtTlf.gridy = 4;
			ftxtTlf.addFocusListener(new FocusListener());
			ftxtTlf.setEnabled(false);
			panel.add(ftxtTlf, gbc_ftxtTlf);
		}
		{
			GridBagConstraints gbc_lblCp = new GridBagConstraints();
			gbc_lblCp.anchor = GridBagConstraints.EAST;
			gbc_lblCp.insets = new Insets(0, 0, 5, 5);
			gbc_lblCp.gridx = 1;
			gbc_lblCp.gridy = 5;
			panel.add(lblCp, gbc_lblCp);
		}
		{
			GridBagConstraints gbc_ftxtCP = new GridBagConstraints();
			gbc_ftxtCP.insets = new Insets(0, 0, 5, 5);
			gbc_ftxtCP.fill = GridBagConstraints.HORIZONTAL;
			gbc_ftxtCP.gridx = 2;
			gbc_ftxtCP.gridy = 5;
			ftxtCP.addFocusListener(new FocusListener());
			ftxtCP.setEnabled(false);
			panel.add(ftxtCP, gbc_ftxtCP);
		}
		{
			GridBagConstraints gbc_lblPiso = new GridBagConstraints();
			gbc_lblPiso.anchor = GridBagConstraints.EAST;
			gbc_lblPiso.insets = new Insets(0, 0, 5, 5);
			gbc_lblPiso.gridx = 4;
			gbc_lblPiso.gridy = 5;
			panel.add(lblPiso, gbc_lblPiso);
		}
		txtPiso.addFocusListener(new FocusListener());
		txtPiso.setEnabled(false);
		txtPiso.setColumns(10);
		{
			GridBagConstraints gbc_txtPiso = new GridBagConstraints();
			gbc_txtPiso.insets = new Insets(0, 0, 5, 5);
			gbc_txtPiso.fill = GridBagConstraints.HORIZONTAL;
			gbc_txtPiso.gridx = 5;
			gbc_txtPiso.gridy = 5;
			panel.add(txtPiso, gbc_txtPiso);
		}
		txtPo.addFocusListener(new FocusListener());
		{
			GridBagConstraints gbc_lblPoblacion = new GridBagConstraints();
			gbc_lblPoblacion.anchor = GridBagConstraints.EAST;
			gbc_lblPoblacion.insets = new Insets(0, 0, 5, 5);
			gbc_lblPoblacion.gridx = 1;
			gbc_lblPoblacion.gridy = 6;
			panel.add(lblPoblacion, gbc_lblPoblacion);
		}
		txtPo.setEnabled(false);
		txtPo.setColumns(10);
		{
			GridBagConstraints gbc_txtPo = new GridBagConstraints();
			gbc_txtPo.fill = GridBagConstraints.HORIZONTAL;
			gbc_txtPo.insets = new Insets(0, 0, 5, 5);
			gbc_txtPo.gridx = 2;
			gbc_txtPo.gridy = 6;
			panel.add(txtPo, gbc_txtPo);
		}
		{
			GridBagConstraints gbc_lblNumero = new GridBagConstraints();
			gbc_lblNumero.anchor = GridBagConstraints.EAST;
			gbc_lblNumero.insets = new Insets(0, 0, 5, 5);
			gbc_lblNumero.gridx = 4;
			gbc_lblNumero.gridy = 6;
			panel.add(lblNumero, gbc_lblNumero);
		}
		txtNu.addFocusListener(new FocusListener());
		txtNu.setEnabled(false);
		txtNu.setColumns(10);
		{
			GridBagConstraints gbc_txtNu = new GridBagConstraints();
			gbc_txtNu.insets = new Insets(0, 0, 5, 5);
			gbc_txtNu.fill = GridBagConstraints.HORIZONTAL;
			gbc_txtNu.gridx = 5;
			gbc_txtNu.gridy = 6;
			panel.add(txtNu, gbc_txtNu);
		}
		{
			GridBagConstraints gbc_lblProvincia = new GridBagConstraints();
			gbc_lblProvincia.anchor = GridBagConstraints.EAST;
			gbc_lblProvincia.insets = new Insets(0, 0, 5, 5);
			gbc_lblProvincia.gridx = 1;
			gbc_lblProvincia.gridy = 7;
			panel.add(lblProvincia, gbc_lblProvincia);
		}
		txtProvincia.addFocusListener(new FocusListener());
		txtProvincia.setEnabled(false);
		txtProvincia.setColumns(10);
		{
			GridBagConstraints gbc_txtProvincia = new GridBagConstraints();
			gbc_txtProvincia.insets = new Insets(0, 0, 5, 5);
			gbc_txtProvincia.fill = GridBagConstraints.HORIZONTAL;
			gbc_txtProvincia.gridx = 2;
			gbc_txtProvincia.gridy = 7;
			panel.add(txtProvincia, gbc_txtProvincia);
		}
		{
			GridBagConstraints gbc_btnEliminar = new GridBagConstraints();
			gbc_btnEliminar.insets = new Insets(0, 0, 5, 5);
			gbc_btnEliminar.gridx = 3;
			gbc_btnEliminar.gridy = 8;
			btnEliminar.setVisible(false);
			btnEliminar.setEnabled(false);
			panel.add(btnEliminar, gbc_btnEliminar);
		}
		{
			GridBagConstraints gbc_btnModificar = new GridBagConstraints();
			gbc_btnModificar.insets = new Insets(0, 0, 5, 5);
			gbc_btnModificar.gridx = 4;
			gbc_btnModificar.gridy = 8;
			btnModificar.setVisible(false);
			btnModificar.setEnabled(false);
			panel.add(btnModificar, gbc_btnModificar);
		}
		{
			GridBagConstraints gbc_btnCancelar = new GridBagConstraints();
			gbc_btnCancelar.insets = new Insets(0, 0, 5, 5);
			gbc_btnCancelar.gridx = 5;
			gbc_btnCancelar.gridy = 8;
			btnCancelar.addActionListener(new BtnCancelarActionListener());
			btnCancelar.setVisible(false);
			btnCancelar.setEnabled(false);
			panel.add(btnCancelar, gbc_btnCancelar);
		}
		{
			GridBagConstraints gbc_btnGuardar = new GridBagConstraints();
			gbc_btnGuardar.insets = new Insets(0, 0, 5, 5);
			gbc_btnGuardar.gridx = 6;
			gbc_btnGuardar.gridy = 8;
			btnGuardar.addActionListener(new BtnGuardarActionListener());
			btnGuardar.setEnabled(false);
			btnGuardar.setVisible(false);
			panel.add(btnGuardar, gbc_btnGuardar);
		}
		btnAadir.setIcon(new ImageIcon(Principal.class.getResource("/Imagenes/images.png")));
		btnAadir.addActionListener(new BtnAadirActionListener());
		btnAadir.setBounds(6, 6, 143, 29);
		pnlGeneral.add(btnAadir);
		btnBuscar.setIcon(new ImageIcon(Principal.class.getResource("/Imagenes/lupaa.png")));
		btnBuscar.addActionListener(new BtnBuscarActionListener());
		btnBuscar.setBounds(161, 6, 98, 29);
		pnlGeneral.add(btnBuscar);
		{
			pnlContenido.add(pnlCitas, "Panel2");
		}
		pnlCitas.setLayout(new BorderLayout(0, 0));
		{
			splitPane.setOrientation(JSplitPane.VERTICAL_SPLIT);
			pnlCitas.add(splitPane);
		}
		{
			panel_1.setEnabled(false);
			splitPane.setLeftComponent(panel_1);
		}
		GridBagLayout gbl_panel_1 = new GridBagLayout();
		gbl_panel_1.columnWidths = new int[]{100, 61, 1, 170, 50, 50, 0, 162, 0};
		gbl_panel_1.rowHeights = new int[]{16, 0, 0, 50, 0};
		gbl_panel_1.columnWeights = new double[]{0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, Double.MIN_VALUE};
		gbl_panel_1.rowWeights = new double[]{0.0, 0.0, 0.0, 0.0, Double.MIN_VALUE};
		panel_1.setLayout(gbl_panel_1);
		{
			GridBagConstraints gbc_panel_2 = new GridBagConstraints();
			gbc_panel_2.insets = new Insets(0, 0, 5, 5);
			gbc_panel_2.anchor = GridBagConstraints.WEST;
			gbc_panel_2.gridx = 2;
			gbc_panel_2.gridy = 0;
			panel_1.add(panel_2, gbc_panel_2);
		}
		GridBagLayout gbl_panel_2 = new GridBagLayout();
		gbl_panel_2.columnWidths = new int[]{0};
		gbl_panel_2.rowHeights = new int[]{0};
		gbl_panel_2.columnWeights = new double[]{Double.MIN_VALUE};
		gbl_panel_2.rowWeights = new double[]{Double.MIN_VALUE};
		panel_2.setLayout(gbl_panel_2);
		{
			GridBagConstraints gbc_lblNombre_1 = new GridBagConstraints();
			gbc_lblNombre_1.insets = new Insets(0, 0, 5, 5);
			gbc_lblNombre_1.gridx = 1;
			gbc_lblNombre_1.gridy = 1;
			panel_1.add(lblNombre_1, gbc_lblNombre_1);
		}
		{
			GridBagConstraints gbc_txtNomCita = new GridBagConstraints();
			gbc_txtNomCita.insets = new Insets(0, 0, 5, 5);
			gbc_txtNomCita.fill = GridBagConstraints.HORIZONTAL;
			gbc_txtNomCita.gridx = 3;
			gbc_txtNomCita.gridy = 1;
			panel_1.add(txtNomCita, gbc_txtNomCita);
		}
		{
			GridBagConstraints gbc_lblFechaDeNacimiento_1 = new GridBagConstraints();
			gbc_lblFechaDeNacimiento_1.anchor = GridBagConstraints.EAST;
			gbc_lblFechaDeNacimiento_1.insets = new Insets(0, 0, 5, 5);
			gbc_lblFechaDeNacimiento_1.gridx = 6;
			gbc_lblFechaDeNacimiento_1.gridy = 1;
			panel_1.add(lblFechaDeNacimiento_1, gbc_lblFechaDeNacimiento_1);
		}
		{
			GridBagConstraints gbc_txtFechaCita = new GridBagConstraints();
			gbc_txtFechaCita.insets = new Insets(0, 0, 5, 0);
			gbc_txtFechaCita.fill = GridBagConstraints.HORIZONTAL;
			gbc_txtFechaCita.gridx = 7;
			gbc_txtFechaCita.gridy = 1;
			panel_1.add(txtFechaCita, gbc_txtFechaCita);
		}
		{
			GridBagConstraints gbc_lblApellidos_2 = new GridBagConstraints();
			gbc_lblApellidos_2.insets = new Insets(0, 0, 5, 5);
			gbc_lblApellidos_2.gridx = 1;
			gbc_lblApellidos_2.gridy = 2;
			panel_1.add(lblApellidos_2, gbc_lblApellidos_2);
		}
		{
			GridBagConstraints gbc_txtApeCita = new GridBagConstraints();
			gbc_txtApeCita.insets = new Insets(0, 0, 5, 5);
			gbc_txtApeCita.fill = GridBagConstraints.HORIZONTAL;
			gbc_txtApeCita.gridx = 3;
			gbc_txtApeCita.gridy = 2;
			panel_1.add(txtApeCita, gbc_txtApeCita);
		}
		{
			splitPane.setRightComponent(tabbedPane_1);
		}
		{
			tabbedPane_1.addTab("Paso 1", null, pnlPaso1, null);
		}
		GridBagLayout gbl_pnlPaso1 = new GridBagLayout();
		gbl_pnlPaso1.columnWidths = new int[]{150, 0, 0, 448, 0, 0, 0, 0};
		gbl_pnlPaso1.rowHeights = new int[]{70, 0, 0, 0, 0, 0, 0, 0, 0, 0};
		gbl_pnlPaso1.columnWeights = new double[]{0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, Double.MIN_VALUE};
		gbl_pnlPaso1.rowWeights = new double[]{0.0, 0.0, 1.0, 0.0, 1.0, 0.0, 1.0, 0.0, 0.0, Double.MIN_VALUE};
		pnlPaso1.setLayout(gbl_pnlPaso1);
		{
			GridBagConstraints gbc_lblDrdra = new GridBagConstraints();
			gbc_lblDrdra.anchor = GridBagConstraints.EAST;
			gbc_lblDrdra.insets = new Insets(0, 0, 5, 5);
			gbc_lblDrdra.gridx = 2;
			gbc_lblDrdra.gridy = 2;
			pnlPaso1.add(lblDrdra, gbc_lblDrdra);
		}
		{
			GridBagConstraints gbc_comboBox_1 = new GridBagConstraints();
			gbc_comboBox_1.insets = new Insets(0, 0, 5, 5);
			gbc_comboBox_1.fill = GridBagConstraints.HORIZONTAL;
			gbc_comboBox_1.gridx = 3;
			gbc_comboBox_1.gridy = 2;
			pnlPaso1.add(comboBox_1, gbc_comboBox_1);
		}
		{
			GridBagConstraints gbc_lblTipoDeConsulta = new GridBagConstraints();
			gbc_lblTipoDeConsulta.anchor = GridBagConstraints.EAST;
			gbc_lblTipoDeConsulta.insets = new Insets(0, 0, 5, 5);
			gbc_lblTipoDeConsulta.gridx = 2;
			gbc_lblTipoDeConsulta.gridy = 4;
			pnlPaso1.add(lblTipoDeConsulta, gbc_lblTipoDeConsulta);
		}
		{
			GridBagConstraints gbc_comboBox_2 = new GridBagConstraints();
			gbc_comboBox_2.insets = new Insets(0, 0, 5, 5);
			gbc_comboBox_2.fill = GridBagConstraints.HORIZONTAL;
			gbc_comboBox_2.gridx = 3;
			gbc_comboBox_2.gridy = 4;
			comboBox_2.setModel(new DefaultComboBoxModel(new String[] {"Primera Consulta", "Revision"}));
			comboBox_2.setToolTipText("");
			pnlPaso1.add(comboBox_2, gbc_comboBox_2);
		}
		{
			GridBagConstraints gbc_lblMotivo = new GridBagConstraints();
			gbc_lblMotivo.anchor = GridBagConstraints.EAST;
			gbc_lblMotivo.insets = new Insets(0, 0, 5, 5);
			gbc_lblMotivo.gridx = 2;
			gbc_lblMotivo.gridy = 6;
			pnlPaso1.add(lblMotivo, gbc_lblMotivo);
		}
		{
			GridBagConstraints gbc_txtMotivo = new GridBagConstraints();
			gbc_txtMotivo.insets = new Insets(0, 0, 5, 5);
			gbc_txtMotivo.fill = GridBagConstraints.HORIZONTAL;
			gbc_txtMotivo.gridx = 3;
			gbc_txtMotivo.gridy = 6;
			pnlPaso1.add(txtMotivo, gbc_txtMotivo);
		}
		{
			GridBagConstraints gbc_btnSiguiente = new GridBagConstraints();
			gbc_btnSiguiente.gridx = 6;
			gbc_btnSiguiente.gridy = 8;
			btnSiguiente.addActionListener(new BtnSiguienteActionListener());
			pnlPaso1.add(btnSiguiente, gbc_btnSiguiente);
		}
		{
			tabbedPane_1.addTab("Paso 2", null, pnlPaso2, null);
			GridBagLayout gbl_pnlPaso2 = new GridBagLayout();
			gbl_pnlPaso2.columnWidths = new int[]{170, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0};
			gbl_pnlPaso2.rowHeights = new int[]{70, 0, 0, 0, 0, 0, 0, 0, 0};
			gbl_pnlPaso2.columnWeights = new double[]{0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, Double.MIN_VALUE};
			gbl_pnlPaso2.rowWeights = new double[]{0.0, 1.0, 0.0, 1.0, 0.0, 1.0, 0.0, 1.0, Double.MIN_VALUE};
			pnlPaso2.setLayout(gbl_pnlPaso2);
			{
				GridBagConstraints gbc_lblIndique = new GridBagConstraints();
				gbc_lblIndique.gridwidth = 4;
				gbc_lblIndique.insets = new Insets(0, 0, 5, 5);
				gbc_lblIndique.gridx = 3;
				gbc_lblIndique.gridy = 1;
				pnlPaso2.add(lblIndique, gbc_lblIndique);
			}
			{
				GridBagConstraints gbc_lblFe = new GridBagConstraints();
				gbc_lblFe.anchor = GridBagConstraints.EAST;
				gbc_lblFe.insets = new Insets(0, 0, 5, 5);
				gbc_lblFe.gridx = 3;
				gbc_lblFe.gridy = 3;
				pnlPaso2.add(lblFe, gbc_lblFe);
			}
			{
				GridBagConstraints gbc_textField_15 = new GridBagConstraints();
				gbc_textField_15.insets = new Insets(0, 0, 5, 5);
				gbc_textField_15.fill = GridBagConstraints.HORIZONTAL;
				gbc_textField_15.gridx = 4;
				gbc_textField_15.gridy = 3;
				pnlPaso2.add(textField_15, gbc_textField_15);
			}
			{
				GridBagConstraints gbc_btnNewButton = new GridBagConstraints();
				gbc_btnNewButton.insets = new Insets(0, 0, 5, 5);
				gbc_btnNewButton.gridx = 5;
				gbc_btnNewButton.gridy = 3;
				btnNewButton.setIcon(new ImageIcon(Principal.class.getResource("/com/toedter/calendar/images/JDateChooserColor32.gif")));
				pnlPaso2.add(btnNewButton, gbc_btnNewButton);
			}
			{
				GridBagConstraints gbc_lblTurno = new GridBagConstraints();
				gbc_lblTurno.insets = new Insets(0, 0, 5, 5);
				gbc_lblTurno.gridx = 3;
				gbc_lblTurno.gridy = 5;
				pnlPaso2.add(lblTurno, gbc_lblTurno);
			}
			{
				GridBagConstraints gbc_rdbtnCualquiera = new GridBagConstraints();
				gbc_rdbtnCualquiera.insets = new Insets(0, 0, 5, 5);
				gbc_rdbtnCualquiera.gridx = 4;
				gbc_rdbtnCualquiera.gridy = 5;
				pnlPaso2.add(rdbtnCualquiera, gbc_rdbtnCualquiera);
			}
			{
				GridBagConstraints gbc_rdbtnMaana = new GridBagConstraints();
				gbc_rdbtnMaana.insets = new Insets(0, 0, 5, 5);
				gbc_rdbtnMaana.gridx = 5;
				gbc_rdbtnMaana.gridy = 5;
				pnlPaso2.add(rdbtnMaana, gbc_rdbtnMaana);
			}
			{
				GridBagConstraints gbc_rdbtnTarde = new GridBagConstraints();
				gbc_rdbtnTarde.insets = new Insets(0, 0, 5, 5);
				gbc_rdbtnTarde.gridx = 6;
				gbc_rdbtnTarde.gridy = 5;
				pnlPaso2.add(rdbtnTarde, gbc_rdbtnTarde);
			}
			{
			}
			GridBagConstraints gbc_btnSiguiente_1 = new GridBagConstraints();
			gbc_btnSiguiente_1.gridx = 10;
			gbc_btnSiguiente_1.gridy = 7;
			btnSiguiente_1.addActionListener(new BtnSiguiente_1ActionListener());
			{
				GridBagConstraints gbc_button_1 = new GridBagConstraints();
				gbc_button_1.insets = new Insets(0, 0, 0, 5);
				gbc_button_1.gridx = 9;
				gbc_button_1.gridy = 7;
				button_1.addActionListener(new Button_1ActionListener());
				pnlPaso2.add(button_1, gbc_button_1);
			}
			pnlPaso2.add(btnSiguiente_1, gbc_btnSiguiente_1);
			tabbedPane_1.setEnabledAt(1, false);
		}
		{
			tabbedPane_1.addTab("Paso 3", null, pnlPaso3, null);
			pnlPaso3.setLayout(null);
			{
				lblNewLabel_2.setBounds(139, 36, 458, 16);
				pnlPaso3.add(lblNewLabel_2);
			}
			{
				panel_4.setBorder(new LineBorder(new Color(0, 0, 0)));
				panel_4.setBounds(215, 79, 575, 148);
				pnlPaso3.add(panel_4);
			}
			GridBagLayout gbl_panel_4 = new GridBagLayout();
			gbl_panel_4.columnWidths = new int[]{62, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0};
			gbl_panel_4.rowHeights = new int[]{33, 23, 10, 0, 0};
			gbl_panel_4.columnWeights = new double[]{0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, Double.MIN_VALUE};
			gbl_panel_4.rowWeights = new double[]{0.0, 0.0, 0.0, 0.0, Double.MIN_VALUE};
			panel_4.setLayout(gbl_panel_4);
			{
				GridBagConstraints gbc_radioButton = new GridBagConstraints();
				gbc_radioButton.insets = new Insets(0, 0, 5, 5);
				gbc_radioButton.gridx = 1;
				gbc_radioButton.gridy = 1;
				buttonGroup.add(radioButton);
				panel_4.add(radioButton, gbc_radioButton);
			}
			{
				GridBagConstraints gbc_radioButton_1 = new GridBagConstraints();
				gbc_radioButton_1.insets = new Insets(0, 0, 5, 5);
				gbc_radioButton_1.gridx = 3;
				gbc_radioButton_1.gridy = 1;
				buttonGroup.add(radioButton_1);
				panel_4.add(radioButton_1, gbc_radioButton_1);
			}
			{
				GridBagConstraints gbc_radioButton_2 = new GridBagConstraints();
				gbc_radioButton_2.insets = new Insets(0, 0, 5, 5);
				gbc_radioButton_2.gridx = 5;
				gbc_radioButton_2.gridy = 1;
				buttonGroup.add(radioButton_2);
				panel_4.add(radioButton_2, gbc_radioButton_2);
			}
			{
				GridBagConstraints gbc_radioButton_3 = new GridBagConstraints();
				gbc_radioButton_3.insets = new Insets(0, 0, 5, 5);
				gbc_radioButton_3.gridx = 7;
				gbc_radioButton_3.gridy = 1;
				buttonGroup.add(radioButton_3);
				panel_4.add(radioButton_3, gbc_radioButton_3);
			}
			{
				GridBagConstraints gbc_radioButton_4 = new GridBagConstraints();
				gbc_radioButton_4.insets = new Insets(0, 0, 5, 0);
				gbc_radioButton_4.gridx = 9;
				gbc_radioButton_4.gridy = 1;
				buttonGroup.add(radioButton_4);
				panel_4.add(radioButton_4, gbc_radioButton_4);
			}
			{
				GridBagConstraints gbc_rdbtnNewRadioButton = new GridBagConstraints();
				gbc_rdbtnNewRadioButton.insets = new Insets(0, 0, 0, 5);
				gbc_rdbtnNewRadioButton.gridx = 1;
				gbc_rdbtnNewRadioButton.gridy = 3;
				buttonGroup.add(rdbtnNewRadioButton);
				panel_4.add(rdbtnNewRadioButton, gbc_rdbtnNewRadioButton);
			}
			{
				GridBagConstraints gbc_radioButton_5 = new GridBagConstraints();
				gbc_radioButton_5.insets = new Insets(0, 0, 0, 5);
				gbc_radioButton_5.gridx = 3;
				gbc_radioButton_5.gridy = 3;
				buttonGroup.add(radioButton_5);
				panel_4.add(radioButton_5, gbc_radioButton_5);
			}
			{
				GridBagConstraints gbc_radioButton_6 = new GridBagConstraints();
				gbc_radioButton_6.insets = new Insets(0, 0, 0, 5);
				gbc_radioButton_6.gridx = 5;
				gbc_radioButton_6.gridy = 3;
				buttonGroup.add(radioButton_6);
				panel_4.add(radioButton_6, gbc_radioButton_6);
			}
			{
				GridBagConstraints gbc_radioButton_7 = new GridBagConstraints();
				gbc_radioButton_7.insets = new Insets(0, 0, 0, 5);
				gbc_radioButton_7.gridx = 7;
				gbc_radioButton_7.gridy = 3;
				buttonGroup.add(radioButton_7);
				panel_4.add(radioButton_7, gbc_radioButton_7);
			}
			{
				GridBagConstraints gbc_radioButton_8 = new GridBagConstraints();
				gbc_radioButton_8.gridx = 9;
				gbc_radioButton_8.gridy = 3;
				buttonGroup.add(radioButton_8);
				panel_4.add(radioButton_8, gbc_radioButton_8);
			}
			{
				button_2.addActionListener(new Button_2ActionListener());
				button_2.setBounds(776, 239, 117, 29);
				pnlPaso3.add(button_2);
			}
			{
				btnSiguiente_2.setBounds(915, 239, 117, 29);
				pnlPaso3.add(btnSiguiente_2);
			}
			tabbedPane_1.setEnabledAt(2, false);
		}
		{
			pnlContenido.add(pnlHistorial, "Panel3");
		}
		pnlHistorial.setLayout(new BorderLayout(0, 0));
		{
			splitPane_1.setOrientation(JSplitPane.VERTICAL_SPLIT);
			pnlHistorial.add(splitPane_1);
		}
		{
			panel_3.setEnabled(false);
			splitPane_1.setLeftComponent(panel_3);
		}
		GridBagLayout gbl_panel_3 = new GridBagLayout();
		gbl_panel_3.columnWidths = new int[]{100, 61, 1, 170, 50, 50, 0, 162, 0};
		gbl_panel_3.rowHeights = new int[]{16, 0, 0, 50, 0};
		gbl_panel_3.columnWeights = new double[]{0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, Double.MIN_VALUE};
		gbl_panel_3.rowWeights = new double[]{0.0, 0.0, 0.0, 0.0, Double.MIN_VALUE};
		panel_3.setLayout(gbl_panel_3);
		{
			GridBagConstraints gbc_panel_5 = new GridBagConstraints();
			gbc_panel_5.anchor = GridBagConstraints.WEST;
			gbc_panel_5.insets = new Insets(0, 0, 5, 5);
			gbc_panel_5.gridx = 2;
			gbc_panel_5.gridy = 0;
			panel_3.add(panel_5, gbc_panel_5);
		}
		GridBagLayout gbl_panel_5 = new GridBagLayout();
		gbl_panel_5.columnWidths = new int[]{0};
		gbl_panel_5.rowHeights = new int[]{0};
		gbl_panel_5.columnWeights = new double[]{Double.MIN_VALUE};
		gbl_panel_5.rowWeights = new double[]{Double.MIN_VALUE};
		panel_5.setLayout(gbl_panel_5);
		{
			GridBagConstraints gbc_label_1 = new GridBagConstraints();
			gbc_label_1.insets = new Insets(0, 0, 5, 5);
			gbc_label_1.gridx = 1;
			gbc_label_1.gridy = 1;
			panel_3.add(label_1, gbc_label_1);
		}
		{
			GridBagConstraints gbc_txtNomHis = new GridBagConstraints();
			gbc_txtNomHis.fill = GridBagConstraints.HORIZONTAL;
			gbc_txtNomHis.insets = new Insets(0, 0, 5, 5);
			gbc_txtNomHis.gridx = 3;
			gbc_txtNomHis.gridy = 1;
			txtNomHis.setEditable(false);
			txtNomHis.setColumns(10);
			panel_3.add(txtNomHis, gbc_txtNomHis);
		}
		{
			GridBagConstraints gbc_label_2 = new GridBagConstraints();
			gbc_label_2.anchor = GridBagConstraints.EAST;
			gbc_label_2.insets = new Insets(0, 0, 5, 5);
			gbc_label_2.gridx = 6;
			gbc_label_2.gridy = 1;
			panel_3.add(label_2, gbc_label_2);
		}
		{
			GridBagConstraints gbc_txtFechaHis = new GridBagConstraints();
			gbc_txtFechaHis.fill = GridBagConstraints.HORIZONTAL;
			gbc_txtFechaHis.insets = new Insets(0, 0, 5, 0);
			gbc_txtFechaHis.gridx = 7;
			gbc_txtFechaHis.gridy = 1;
			txtFechaHis.setEditable(false);
			txtFechaHis.setColumns(10);
			panel_3.add(txtFechaHis, gbc_txtFechaHis);
		}
		{
			GridBagConstraints gbc_label_3 = new GridBagConstraints();
			gbc_label_3.insets = new Insets(0, 0, 5, 5);
			gbc_label_3.gridx = 1;
			gbc_label_3.gridy = 2;
			panel_3.add(label_3, gbc_label_3);
		}
		{
			GridBagConstraints gbc_txtApeHis = new GridBagConstraints();
			gbc_txtApeHis.fill = GridBagConstraints.HORIZONTAL;
			gbc_txtApeHis.insets = new Insets(0, 0, 5, 5);
			gbc_txtApeHis.gridx = 3;
			gbc_txtApeHis.gridy = 2;
			txtApeHis.setEditable(false);
			txtApeHis.setColumns(10);
			panel_3.add(txtApeHis, gbc_txtApeHis);
		}
		{
			splitPane_1.setRightComponent(panel_6);
		}
		panel_6.setLayout(null);
		{
			btnNewButton_1.addActionListener(new BtnNewButton_1ActionListener());
			btnNewButton_1.setIcon(new ImageIcon(Principal.class.getResource("/com/sun/java/swing/plaf/gtk/icons/File.gif")));
			btnNewButton_1.setBounds(36, 264, 137, 44);
			panel_6.add(btnNewButton_1);
		}
		{
			btnAadirInforme.addActionListener(new BtnAadirInformeActionListener());
			btnAadirInforme.setIcon(new ImageIcon(Principal.class.getResource("/com/sun/java/swing/plaf/gtk/resources/gtk-yes-4.png")));
			btnAadirInforme.setBounds(36, 208, 137, 44);
			panel_6.add(btnAadirInforme);
		}
		{
			tabbedPane.addTab("Agenda", null, pnlAgenda, null);
		}
		{
			tabbedPane.addTab("Personal", null, pnlPersonal, null);
		}
	
		}
	{
		MaskFormatter formatoDNI;
		try{
			formatoDNI=new MaskFormatter("########'-U");
			formatoDNI.setPlaceholderCharacter('_');
			ftxtDNI = new JFormattedTextField(formatoDNI); 

			
		}catch(ParseException e){
			e.printStackTrace();
		}
		
	}
	{
		MaskFormatter formatoTFLN;
		try{
			formatoTFLN=new MaskFormatter("###' ###' ###'");
			formatoTFLN.setPlaceholderCharacter('_');
			ftxtTlf = new JFormattedTextField(formatoTFLN); 

			
		}catch(ParseException e){
			e.printStackTrace();
		}
		
	}
	{
		MaskFormatter formatoCP;
		try{
			formatoCP=new MaskFormatter("#####");
			formatoCP.setPlaceholderCharacter('_');
			ftxtCP = new JFormattedTextField(formatoCP); 

			
		}catch(ParseException e){
			e.printStackTrace();
		}
		
	}
	private class ToggleButtonActionListener implements ActionListener {
		public void actionPerformed(ActionEvent e) {
			CardLayout cl = (CardLayout)(pnlContenido.getLayout());
	        cl.show(pnlContenido,"Panel1");
		}
	}
	private class ToggleButton_1ActionListener implements ActionListener {
		public void actionPerformed(ActionEvent e) {
			CardLayout cl = (CardLayout)(pnlContenido.getLayout());
	        cl.show(pnlContenido,"Panel2");
		}
	}
	private class BtnHistorialActionListener implements ActionListener {
		public void actionPerformed(ActionEvent e) {
			CardLayout cl = (CardLayout)(pnlContenido.getLayout());
	        cl.show(pnlContenido,"Panel3");
		}
	}
	
	
	private class BtnSiguienteActionListener implements ActionListener {
		public void actionPerformed(ActionEvent e) {
			tabbedPane_1.setEnabledAt(1, true);
			tabbedPane_1.setEnabledAt(0, false);
			tabbedPane_1.setSelectedIndex(1);
			
		}
	}
	private class Button_1ActionListener implements ActionListener {
		public void actionPerformed(ActionEvent e) {
			tabbedPane_1.setEnabledAt(0, true);
			tabbedPane_1.setEnabledAt(1, false);
			tabbedPane_1.setSelectedIndex(0);
			
		}
	}
	private class BtnSiguiente_1ActionListener implements ActionListener {
		public void actionPerformed(ActionEvent e) {
			tabbedPane_1.setEnabledAt(2, true);
			tabbedPane_1.setEnabledAt(1, false);
			tabbedPane_1.setSelectedIndex(2);
		}
	}
	private class Button_2ActionListener implements ActionListener {
		public void actionPerformed(ActionEvent arg0) {
			tabbedPane_1.setEnabledAt(2, false);
			//Abrir ventana para confirmar
			
		}
	}
	private class BtnNewButton_1ActionListener implements ActionListener {
		public void actionPerformed(ActionEvent arg0) {
			ListarInformes li=new ListarInformes();
			li.setVisible(true);
			li.setTitle("Listado de Informes");
			li.lblTexto.setText("Seleccione el informe que desea:");
		}
	}
	private class BtnAadirInformeActionListener implements ActionListener {
		public void actionPerformed(ActionEvent arg0) {
			Informes inf =new Informes();
			inf.setVisible(true);
			setEnabled(false);

		}
	}
	private class FocusListener extends FocusAdapter {
		@Override
		public void focusGained(FocusEvent arg0) {
			arg0.getComponent().setBackground(new Color(250,250,210));
		}
		public void focusLost(FocusEvent arg0){
			arg0.getComponent().setBackground(new Color(250,250,250));
		}
	}
	private class BtnBuscarActionListener implements ActionListener {
		public void actionPerformed(ActionEvent e) {
			btnBuscar.setSelected(true);
			txtNombB.setEnabled(true);
			txtApeB.setEnabled(true);
			ftxtDNIB.setEnabled(true);
			btnListarClientes.setEnabled(true);
			listCli.setEnabled(true);
			txtNombre.setEnabled(false);
			txtApe.setEnabled(false);
			ftxtDNI.setEnabled(false);
			txtcalle.setEnabled(false);
			ftxtCP.setEnabled(false);
			txtPo.setEnabled(false);
			txtProvincia.setEnabled(false);
			dateChooser.setEnabled(false);
			txtNu.setEnabled(false);
			ftxtTlf.setEnabled(false);
			txtPiso.setEnabled(false);
			cmbSexo.setEnabled(false);
		}
	}
	private class BtnAadirActionListener implements ActionListener {
		public void actionPerformed(ActionEvent e) {
			btnModificar.setVisible(false);
			btnEliminar.setVisible(false);
			btnGuardar.setVisible(true);
			btnGuardar.setEnabled(true);
			btnCancelar.setVisible(true);
			btnCancelar.setEnabled(true);
			btnAadir.setSelected(true);
			txtNombre.setEnabled(true);
			txtApe.setEnabled(true);
			ftxtDNI.setEnabled(true);
			txtcalle.setEnabled(true);
			ftxtCP.setEnabled(true);
			txtPo.setEnabled(true);
			txtProvincia.setEnabled(true);
			dateChooser.setEnabled(true);
			txtNu.setEnabled(true);
			ftxtTlf.setEnabled(true);
			txtPiso.setEnabled(true);
			cmbSexo.setEnabled(true);
			txtNombB.setEnabled(false);
			txtApeB.setEnabled(false);
			ftxtDNIB.setEnabled(false);
			btnListarClientes.setEnabled(false);
			


			
		}
	}
	private class BtnListarClientesActionListener implements ActionListener {
		public void actionPerformed(ActionEvent e) {
			ListarInformes informes=new ListarInformes();
			informes.setVisible(true);
			
		}
	}
	private class BtnCancelarActionListener implements ActionListener {
		public void actionPerformed(ActionEvent e) {
			btnModificar.setVisible(false);
			btnEliminar.setVisible(false);
			btnCancelar.setVisible(false);
			btnCancelar.setEnabled(false);
			btnGuardar.setVisible(false);
			btnGuardar.setEnabled(false);
			btnAadir.setSelected(false);
			btnBuscar.setSelected(false);

			btnAadir.setEnabled(true);
			btnBuscar.setEnabled(true);
			
			txtNombB.setText(null);
			txtApeB.setText(null);
			
			
			txtNombre.setText(null);
			txtApe.setText(null);
			ftxtDNI.setText(null);
			txtcalle.setText(null);
			ftxtCP.setText(null);
			txtPo.setText(null);
			txtProvincia.setText(null);
			dateChooser.cleanup();
			txtNu.setText(null);
			ftxtTlf.setText(null);
			txtPiso.setText(null);
			txtNombB.setEnabled(false);
			txtApeB.setEnabled(false);
			txtNombre.setEnabled(false);
			txtApe.setEnabled(false);
			ftxtDNI.setEnabled(false);
			txtcalle.setEnabled(false);
			ftxtCP.setEnabled(false);
			txtPo.setEnabled(false);
			txtProvincia.setEnabled(false);
			dateChooser.setEnabled(false);
			txtNu.setEnabled(false);
			ftxtTlf.setEnabled(false);
			txtPiso.setEnabled(false);
			cmbSexo.setEnabled(false);
		}
	}
	private class BtnGuardarActionListener implements ActionListener {
		public void actionPerformed(ActionEvent e) {
			String nombre=txtNombre.getText().toString();
			String ape=txtApe.getText().toString();
			String dni=ftxtDNI.getText().toString();
			String calle=txtcalle.getText().toString();
			String cp=ftxtCP.getText().toString();
			String po=txtPo.getText().toString();
			String fecha=date.format(dateChooser.getDate());
			String nu=(txtNu.getText().toString());
			String tlfn=(ftxtTlf.getText().toString());
			String piso=txtPiso.getText().toString();
			String sexo=cmbSexo.getSelectedItem().toString();
			String provincia=txtProvincia.getText().toString();

			if(nombre!=null && ape!=null && dni!=null && calle !=null && cp!=nu && po!=null &&fecha!=null &&nu!=null &&tlfn!=null && piso!=null && sexo!=null && provincia!=null){
				Persona p=new Persona(nombre,ape,dni,calle,po,provincia,fecha,sexo,piso,cp,nu,tlfn);
				lpers.add(p);
			}else{
				JOptionPane.showMessageDialog(btnGuardar, "Error");
			}
			
		}
	}
	private class TxtNombBKeyListener extends KeyAdapter {
		@Override
		public void keyReleased(KeyEvent arg0) {
			modeloListaClientes.clear();
			String aux=txtNombB.getText();
			String aux2,auxape;
			boolean enc=false;
			if(aux.isEmpty()) {
				modeloListaClientes.clear();
				txtNombB.setBorder(bordeRojo);

			}else{
					for(int i=0;i<lpers.size();i++){
						aux2=lpers.get(i).getNombre();
						auxape=lpers.get(i).getApellido();
					
						if(aux2.indexOf(aux)!=-1){	
							listCli.setModel(modeloListaClientes);
							modeloListaClientes.addElement(auxape+", "+aux2);
							enc=true;
						}
					}

					if(enc) txtNombB.setBorder(bordeVerde);
					else txtNombB.setBorder(bordeRojo);
			}
		}
	}
	private class TxtApeBKeyListener extends KeyAdapter {
		@Override
		public void keyReleased(KeyEvent arg0) {
			modeloListaClientes.clear();
			String ape=txtApeB.getText();
			String nomb=txtNombB.getText();
			String aux2,auxape;
			boolean enc=false;
			if(ape.isEmpty()) {
				modeloListaClientes.clear();
				txtApeB.setBorder(bordeRojo);
			}else{
				for(int i=0;i<lpers.size();i++){
					aux2=lpers.get(i).getNombre();
					auxape=lpers.get(i).getApellido();
				
					if(auxape.indexOf(ape)!=-1 && aux2.indexOf(nomb)!=-1){	
						enc=true;
						listCli.setModel(modeloListaClientes);
						modeloListaClientes.addElement(auxape+", "+aux2);
					}
				}
				if(enc) txtApeB.setBorder(bordeVerde);
				else txtApeB.setBorder(bordeRojo);
					
			}
		}
	}
	private class ListCliListSelectionListener implements ListSelectionListener {
		public void valueChanged(ListSelectionEvent arg0) {
            String select = listCli.getSelectedValue().toString();
            String[] nombre = select.split(", ");
            
            for (int i = 0; i < lpers.size(); i++) {

                if (nombre[0].equalsIgnoreCase(lpers.get(i).getApellido()) && nombre[1].equalsIgnoreCase(lpers.get(i).getNombre())) {
                	btnModificar.setVisible(true);
        			btnEliminar.setVisible(true);
        			btnCancelar.setVisible(true);
        			btnCancelar.setEnabled(true);
        			btnModificar.setEnabled(true);
        			btnEliminar.setEnabled(true);
        			btnCitas.setEnabled(true);
        			btnHistorial.setEnabled(true);

        			btnGuardar.setVisible(false);
        			btnGuardar.setEnabled(false);
        			btnBuscar.setEnabled(false);
        			txtNombB.setEnabled(false);
        			txtApeB.setEnabled(false);
        			listCli.setEnabled(false);
        			btnListarClientes.setEnabled(false);
        			
        			txtNombre.setEnabled(true);
        			txtApe.setEnabled(true);
        			ftxtDNI.setEnabled(true);
        			txtcalle.setEnabled(true);
        			ftxtCP.setEnabled(true);
        			txtPo.setEnabled(true);
        			txtProvincia.setEnabled(true);
        			dateChooser.setEnabled(true);
        			txtNu.setEnabled(true);
        			ftxtTlf.setEnabled(true);
        			txtPiso.setEnabled(true);
        			cmbSexo.setEnabled(true);
        			
        			txtNombre.setText(lpers.get(i).getNombre());
        			txtApe.setText(lpers.get(i).getApellido());
        			ftxtDNI.setText(lpers.get(i).getDni());
        			txtcalle.setText(lpers.get(i).getCalle());
        			ftxtCP.setText(lpers.get(i).getCp());
        			txtPo.setText(lpers.get(i).getPoblacion());
        			txtProvincia.setText(lpers.get(i).getProvincia());
        			try {
						Date fecha=date.parse(lpers.get(i).getFecha());
	        			dateChooser.setDate(fecha);
					} catch (ParseException e) {
					
						e.printStackTrace();
					}
        			cmbSexo.setSelectedItem(lpers.get(i).getSexo());
        			txtNu.setText(lpers.get(i).getNumCalle());
        			ftxtTlf.setText(lpers.get(i).getTelf());
        			txtPiso.setText(lpers.get(i).getPiso());
        			
        			txtNomCita.setText(lpers.get(i).getNombre());
        			txtApeCita.setText(lpers.get(i).getApellido());
        			txtFechaCita.setText(lpers.get(i).getFecha());
        			txtNomHis.setText(lpers.get(i).getNombre());
        			txtApeHis.setText(lpers.get(i).getApellido());
        			txtFechaHis.setText(lpers.get(i).getFecha());        			
        			

                }

            }

		}
	}
	private class RdbtnmntmTamaoPequeoActionListener implements ActionListener {
		public void actionPerformed(ActionEvent e) {
			txtNombre.setFont(new Font(txtNombre.getFont().getFontName(),txtNombre.getFont().getStyle(),10)); 
			txtApe.setFont(new Font(txtApe.getFont().getFontName(),txtApe.getFont().getStyle(),10)); 
			ftxtDNI.setFont(new Font(ftxtDNI.getFont().getFontName(),ftxtDNI.getFont().getStyle(),10)); 
			txtcalle.setFont(new Font(txtcalle.getFont().getFontName(),txtcalle.getFont().getStyle(),10)); 
			ftxtCP.setFont(new Font(ftxtCP.getFont().getFontName(),ftxtCP.getFont().getStyle(),10)); 
			txtPo.setFont(new Font(txtPo.getFont().getFontName(),txtPo.getFont().getStyle(),10)); 
			txtProvincia.setFont(new Font(txtProvincia.getFont().getFontName(),txtProvincia.getFont().getStyle(),10)); 
			dateChooser.setFont(new Font(dateChooser.getFont().getFontName(),dateChooser.getFont().getStyle(),10)); 
			cmbSexo.setFont(new Font(cmbSexo.getFont().getFontName(),cmbSexo.getFont().getStyle(),10)); 
			txtNu.setFont(new Font(txtNu.getFont().getFontName(),txtNu.getFont().getStyle(),10)); 
			ftxtTlf.setFont(new Font(ftxtTlf.getFont().getFontName(),ftxtTlf.getFont().getStyle(),10)); 
			txtPiso.setFont(new Font(txtPiso.getFont().getFontName(),txtPiso.getFont().getStyle(),10)); 
			
			txtNombB.setFont(new Font(txtNombB.getFont().getFontName(),txtNombB.getFont().getStyle(),10)); 
			txtApeB.setFont(new Font(txtApeB.getFont().getFontName(),txtApeB.getFont().getStyle(),10)); 
			listCli.setFont(new Font(listCli.getFont().getFontName(),listCli.getFont().getStyle(),10)); 
			
			btnListarClientes.setFont(new Font(btnListarClientes.getFont().getFontName(),btnListarClientes.getFont().getStyle(),10)); 
			btnGuardar.setFont(new Font(btnGuardar.getFont().getFontName(),btnGuardar.getFont().getStyle(),10)); 
			btnCancelar.setFont(new Font(btnCancelar.getFont().getFontName(),btnCancelar.getFont().getStyle(),10));
			btnModificar.setFont(new Font(btnModificar.getFont().getFontName(),btnModificar.getFont().getStyle(),10)); 
			btnEliminar.setFont(new Font(btnEliminar.getFont().getFontName(),btnEliminar.getFont().getStyle(),10));
		
			txtNomCita.setFont(new Font(txtNomCita.getFont().getFontName(),txtNomCita.getFont().getStyle(),10)); 
			txtApeCita.setFont(new Font(txtApeCita.getFont().getFontName(),txtApeCita.getFont().getStyle(),10)); 
			txtFechaCita.setFont(new Font(txtFechaCita.getFont().getFontName(),txtFechaCita.getFont().getStyle(),10)); 
			
			txtNomHis.setFont(new Font(txtNomHis.getFont().getFontName(),txtNomHis.getFont().getStyle(),10)); 
			txtApeHis.setFont(new Font(txtApeHis.getFont().getFontName(),txtApeHis.getFont().getStyle(),10)); 
			txtFechaHis.setFont(new Font(txtFechaHis.getFont().getFontName(),txtFechaHis.getFont().getStyle(),10)); 

			lblNombre_1.setFont(new Font(lblNombre_1.getFont().getFontName(),lblNombre_1.getFont().getStyle(),10)); 
			lblApellidos_2.setFont(new Font(lblApellidos_2.getFont().getFontName(),lblApellidos_2.getFont().getStyle(),10)); 

			lblNewLabel.setFont(new Font(lblNewLabel.getFont().getFontName(),lblNewLabel.getFont().getStyle(),10)); 
			lblApellidos.setFont(new Font(lblApellidos.getFont().getFontName(),lblApellidos.getFont().getStyle(),10)); 

			lblNombre.setFont(new Font(lblNombre.getFont().getFontName(),lblNombre.getFont().getStyle(),10)); 
			lblApellidos_1.setFont(new Font(lblApellidos_1.getFont().getFontName(),lblApellidos_1.getFont().getStyle(),10)); 
			lblFechaDeNacimiento.setFont(new Font(lblFechaDeNacimiento.getFont().getFontName(),lblFechaDeNacimiento.getFont().getStyle(),10));
			lblCalle.setFont(new Font(lblCalle.getFont().getFontName(),lblCalle.getFont().getStyle(),10)); 
			lblCp.setFont(new Font(lblCp.getFont().getFontName(),lblCp.getFont().getStyle(),10));
			lblTelefono.setFont(new Font(lblTelefono.getFont().getFontName(),lblTelefono.getFont().getStyle(),10)); 
			lblSexo.setFont(new Font(lblSexo.getFont().getFontName(),lblSexo.getFont().getStyle(),10)); 
			lblNumero.setFont(new Font(lblNumero.getFont().getFontName(),lblNumero.getFont().getStyle(),10)); 
			lblPoblacion.setFont(new Font(lblPoblacion.getFont().getFontName(),lblPoblacion.getFont().getStyle(),10));
			lblProvincia.setFont(new Font(lblProvincia.getFont().getFontName(),lblProvincia.getFont().getStyle(),10)); 
			lblDNI.setFont(new Font(lblDNI.getFont().getFontName(),lblDNI.getFont().getStyle(),10)); 
			lblPiso.setFont(new Font(lblPiso.getFont().getFontName(),lblPiso.getFont().getStyle(),10)); 

			lblFechaDeNacimiento.setFont(new Font(lblFechaDeNacimiento.getFont().getFontName(),lblFechaDeNacimiento.getFont().getStyle(),10)); 
			lblDrdra.setFont(new Font(lblDrdra.getFont().getFontName(),lblDrdra.getFont().getStyle(),10)); 
			lblMotivo.setFont(new Font(lblMotivo.getFont().getFontName(),lblMotivo.getFont().getStyle(),10)); 
			lblTipoDeConsulta.setFont(new Font(lblTipoDeConsulta.getFont().getFontName(),lblTipoDeConsulta.getFont().getStyle(),10)); 
			comboBox_1.setFont(new Font(comboBox_1.getFont().getFontName(),comboBox_1.getFont().getStyle(),10)); 
			comboBox_2.setFont(new Font(comboBox_2.getFont().getFontName(),comboBox_2.getFont().getStyle(),10)); 
			txtMotivo.setFont(new Font(txtMotivo.getFont().getFontName(),txtMotivo.getFont().getStyle(),10)); 

			btnSiguiente.setFont(new Font(btnSiguiente.getFont().getFontName(),btnSiguiente.getFont().getStyle(),10)); 

			
			
		}
	}
	
	
	private class RdbtnmntmTamaoNormalActionListener_1 implements ActionListener {
		public void actionPerformed(ActionEvent e) {
			txtNombre.setFont(new Font(txtNombre.getFont().getFontName(),txtNombre.getFont().getStyle(),13)); 
			txtApe.setFont(new Font(txtApe.getFont().getFontName(),txtApe.getFont().getStyle(),13)); 
			ftxtDNI.setFont(new Font(ftxtDNI.getFont().getFontName(),ftxtDNI.getFont().getStyle(),13)); 
			txtcalle.setFont(new Font(txtcalle.getFont().getFontName(),txtcalle.getFont().getStyle(),13)); 
			ftxtCP.setFont(new Font(ftxtCP.getFont().getFontName(),ftxtCP.getFont().getStyle(),13)); 
			txtPo.setFont(new Font(txtPo.getFont().getFontName(),txtPo.getFont().getStyle(),13)); 
			txtProvincia.setFont(new Font(txtProvincia.getFont().getFontName(),txtProvincia.getFont().getStyle(),13)); 
			dateChooser.setFont(new Font(dateChooser.getFont().getFontName(),dateChooser.getFont().getStyle(),13)); 
			cmbSexo.setFont(new Font(cmbSexo.getFont().getFontName(),cmbSexo.getFont().getStyle(),13)); 
			txtNu.setFont(new Font(txtNu.getFont().getFontName(),txtNu.getFont().getStyle(),13)); 
			ftxtTlf.setFont(new Font(ftxtTlf.getFont().getFontName(),ftxtTlf.getFont().getStyle(),13)); 
			txtPiso.setFont(new Font(txtPiso.getFont().getFontName(),txtPiso.getFont().getStyle(),13)); 
			
			txtNombB.setFont(new Font(txtNombB.getFont().getFontName(),txtNombB.getFont().getStyle(),13)); 
			txtApeB.setFont(new Font(txtApeB.getFont().getFontName(),txtApeB.getFont().getStyle(),13)); 
			listCli.setFont(new Font(listCli.getFont().getFontName(),listCli.getFont().getStyle(),13)); 
			
			btnListarClientes.setFont(new Font(btnListarClientes.getFont().getFontName(),btnListarClientes.getFont().getStyle(),13)); 
			btnGuardar.setFont(new Font(btnGuardar.getFont().getFontName(),btnGuardar.getFont().getStyle(),13)); 
			btnCancelar.setFont(new Font(btnCancelar.getFont().getFontName(),btnCancelar.getFont().getStyle(),13));
			btnModificar.setFont(new Font(btnModificar.getFont().getFontName(),btnModificar.getFont().getStyle(),13)); 
			btnEliminar.setFont(new Font(btnEliminar.getFont().getFontName(),btnEliminar.getFont().getStyle(),13));
		
			txtNomCita.setFont(new Font(txtNomCita.getFont().getFontName(),txtNomCita.getFont().getStyle(),13)); 
			txtApeCita.setFont(new Font(txtApeCita.getFont().getFontName(),txtApeCita.getFont().getStyle(),13)); 
			txtFechaCita.setFont(new Font(txtFechaCita.getFont().getFontName(),txtFechaCita.getFont().getStyle(),13)); 
			
			txtNomHis.setFont(new Font(txtNomHis.getFont().getFontName(),txtNomHis.getFont().getStyle(),13)); 
			txtApeHis.setFont(new Font(txtApeHis.getFont().getFontName(),txtApeHis.getFont().getStyle(),13)); 
			txtFechaHis.setFont(new Font(txtFechaHis.getFont().getFontName(),txtFechaHis.getFont().getStyle(),13)); 

			lblNombre_1.setFont(new Font(lblNombre_1.getFont().getFontName(),lblNombre_1.getFont().getStyle(),13)); 
			lblApellidos_2.setFont(new Font(lblApellidos_2.getFont().getFontName(),lblApellidos_2.getFont().getStyle(),13)); 

			lblNewLabel.setFont(new Font(lblNewLabel.getFont().getFontName(),lblNewLabel.getFont().getStyle(),13)); 
			lblApellidos.setFont(new Font(lblApellidos.getFont().getFontName(),lblApellidos.getFont().getStyle(),13)); 

			lblNombre.setFont(new Font(lblNombre.getFont().getFontName(),lblNombre.getFont().getStyle(),13)); 
			lblApellidos_1.setFont(new Font(lblApellidos_1.getFont().getFontName(),lblApellidos_1.getFont().getStyle(),13)); 
			lblFechaDeNacimiento.setFont(new Font(lblFechaDeNacimiento.getFont().getFontName(),lblFechaDeNacimiento.getFont().getStyle(),13));
			lblCalle.setFont(new Font(lblCalle.getFont().getFontName(),lblCalle.getFont().getStyle(),13)); 
			lblCp.setFont(new Font(lblCp.getFont().getFontName(),lblCp.getFont().getStyle(),13));
			lblTelefono.setFont(new Font(lblTelefono.getFont().getFontName(),lblTelefono.getFont().getStyle(),13)); 
			lblSexo.setFont(new Font(lblSexo.getFont().getFontName(),lblSexo.getFont().getStyle(),13)); 
			lblNumero.setFont(new Font(lblNumero.getFont().getFontName(),lblNumero.getFont().getStyle(),13)); 
			lblPoblacion.setFont(new Font(lblPoblacion.getFont().getFontName(),lblPoblacion.getFont().getStyle(),13));
			lblProvincia.setFont(new Font(lblProvincia.getFont().getFontName(),lblProvincia.getFont().getStyle(),13)); 
			lblDNI.setFont(new Font(lblDNI.getFont().getFontName(),lblDNI.getFont().getStyle(),13)); 
			lblPiso.setFont(new Font(lblPiso.getFont().getFontName(),lblPiso.getFont().getStyle(),13)); 

			lblFechaDeNacimiento.setFont(new Font(lblFechaDeNacimiento.getFont().getFontName(),lblFechaDeNacimiento.getFont().getStyle(),13)); 
			lblDrdra.setFont(new Font(lblDrdra.getFont().getFontName(),lblDrdra.getFont().getStyle(),13)); 
			lblMotivo.setFont(new Font(lblMotivo.getFont().getFontName(),lblMotivo.getFont().getStyle(),13)); 
			lblTipoDeConsulta.setFont(new Font(lblTipoDeConsulta.getFont().getFontName(),lblTipoDeConsulta.getFont().getStyle(),13)); 
			comboBox_1.setFont(new Font(comboBox_1.getFont().getFontName(),comboBox_1.getFont().getStyle(),13)); 
			comboBox_2.setFont(new Font(comboBox_2.getFont().getFontName(),comboBox_2.getFont().getStyle(),13)); 
			txtMotivo.setFont(new Font(txtMotivo.getFont().getFontName(),txtMotivo.getFont().getStyle(),13)); 

			btnSiguiente.setFont(new Font(btnSiguiente.getFont().getFontName(),btnSiguiente.getFont().getStyle(),13)); 

			
		}
	}
	private class RdbtnmntmTamaoGrandeActionListener implements ActionListener {
		public void actionPerformed(ActionEvent e) {
			txtNombre.setFont(new Font(txtNombre.getFont().getFontName(),txtNombre.getFont().getStyle(),15)); 
			txtApe.setFont(new Font(txtApe.getFont().getFontName(),txtApe.getFont().getStyle(),15)); 
			ftxtDNI.setFont(new Font(ftxtDNI.getFont().getFontName(),ftxtDNI.getFont().getStyle(),15)); 
			txtcalle.setFont(new Font(txtcalle.getFont().getFontName(),txtcalle.getFont().getStyle(),15)); 
			ftxtCP.setFont(new Font(ftxtCP.getFont().getFontName(),ftxtCP.getFont().getStyle(),15)); 
			txtPo.setFont(new Font(txtPo.getFont().getFontName(),txtPo.getFont().getStyle(),15)); 
			txtProvincia.setFont(new Font(txtProvincia.getFont().getFontName(),txtProvincia.getFont().getStyle(),15)); 
			dateChooser.setFont(new Font(dateChooser.getFont().getFontName(),dateChooser.getFont().getStyle(),15)); 
			cmbSexo.setFont(new Font(cmbSexo.getFont().getFontName(),cmbSexo.getFont().getStyle(),15)); 
			txtNu.setFont(new Font(txtNu.getFont().getFontName(),txtNu.getFont().getStyle(),15)); 
			ftxtTlf.setFont(new Font(ftxtTlf.getFont().getFontName(),ftxtTlf.getFont().getStyle(),15)); 
			txtPiso.setFont(new Font(txtPiso.getFont().getFontName(),txtPiso.getFont().getStyle(),15)); 
			
			txtNombB.setFont(new Font(txtNombB.getFont().getFontName(),txtNombB.getFont().getStyle(),15)); 
			txtApeB.setFont(new Font(txtApeB.getFont().getFontName(),txtApeB.getFont().getStyle(),15)); 
			listCli.setFont(new Font(listCli.getFont().getFontName(),listCli.getFont().getStyle(),15)); 
			
			btnListarClientes.setFont(new Font(btnListarClientes.getFont().getFontName(),btnListarClientes.getFont().getStyle(),15)); 
			btnGuardar.setFont(new Font(btnGuardar.getFont().getFontName(),btnGuardar.getFont().getStyle(),15)); 
			btnCancelar.setFont(new Font(btnCancelar.getFont().getFontName(),btnCancelar.getFont().getStyle(),15));
			btnModificar.setFont(new Font(btnModificar.getFont().getFontName(),btnModificar.getFont().getStyle(),15)); 
			btnEliminar.setFont(new Font(btnEliminar.getFont().getFontName(),btnEliminar.getFont().getStyle(),15));
		
			txtNomCita.setFont(new Font(txtNomCita.getFont().getFontName(),txtNomCita.getFont().getStyle(),15)); 
			txtApeCita.setFont(new Font(txtApeCita.getFont().getFontName(),txtApeCita.getFont().getStyle(),15)); 
			txtFechaCita.setFont(new Font(txtFechaCita.getFont().getFontName(),txtFechaCita.getFont().getStyle(),15)); 
			
			txtNomHis.setFont(new Font(txtNomHis.getFont().getFontName(),txtNomHis.getFont().getStyle(),15)); 
			txtApeHis.setFont(new Font(txtApeHis.getFont().getFontName(),txtApeHis.getFont().getStyle(),15)); 
			txtFechaHis.setFont(new Font(txtFechaHis.getFont().getFontName(),txtFechaHis.getFont().getStyle(),15)); 

			lblNombre_1.setFont(new Font(lblNombre_1.getFont().getFontName(),lblNombre_1.getFont().getStyle(),15)); 
			lblApellidos_2.setFont(new Font(lblApellidos_2.getFont().getFontName(),lblApellidos_2.getFont().getStyle(),15)); 

			lblNewLabel.setFont(new Font(lblNewLabel.getFont().getFontName(),lblNewLabel.getFont().getStyle(),15)); 
			lblApellidos.setFont(new Font(lblApellidos.getFont().getFontName(),lblApellidos.getFont().getStyle(),15)); 

			lblNombre.setFont(new Font(lblNombre.getFont().getFontName(),lblNombre.getFont().getStyle(),15)); 
			lblApellidos_1.setFont(new Font(lblApellidos_1.getFont().getFontName(),lblApellidos_1.getFont().getStyle(),15)); 
			lblFechaDeNacimiento.setFont(new Font(lblFechaDeNacimiento.getFont().getFontName(),lblFechaDeNacimiento.getFont().getStyle(),15));
			lblCalle.setFont(new Font(lblCalle.getFont().getFontName(),lblCalle.getFont().getStyle(),15)); 
			lblCp.setFont(new Font(lblCp.getFont().getFontName(),lblCp.getFont().getStyle(),15));
			lblTelefono.setFont(new Font(lblTelefono.getFont().getFontName(),lblTelefono.getFont().getStyle(),15)); 
			lblSexo.setFont(new Font(lblSexo.getFont().getFontName(),lblSexo.getFont().getStyle(),15)); 
			lblNumero.setFont(new Font(lblNumero.getFont().getFontName(),lblNumero.getFont().getStyle(),15)); 
			lblPoblacion.setFont(new Font(lblPoblacion.getFont().getFontName(),lblPoblacion.getFont().getStyle(),15));
			lblProvincia.setFont(new Font(lblProvincia.getFont().getFontName(),lblProvincia.getFont().getStyle(),15)); 
			lblDNI.setFont(new Font(lblDNI.getFont().getFontName(),lblDNI.getFont().getStyle(),15)); 
			lblPiso.setFont(new Font(lblPiso.getFont().getFontName(),lblPiso.getFont().getStyle(),15)); 

			lblFechaDeNacimiento.setFont(new Font(lblFechaDeNacimiento.getFont().getFontName(),lblFechaDeNacimiento.getFont().getStyle(),15)); 
			lblDrdra.setFont(new Font(lblDrdra.getFont().getFontName(),lblDrdra.getFont().getStyle(),15)); 
			lblMotivo.setFont(new Font(lblMotivo.getFont().getFontName(),lblMotivo.getFont().getStyle(),15)); 
			lblTipoDeConsulta.setFont(new Font(lblTipoDeConsulta.getFont().getFontName(),lblTipoDeConsulta.getFont().getStyle(),15)); 
			comboBox_1.setFont(new Font(comboBox_1.getFont().getFontName(),comboBox_1.getFont().getStyle(),15)); 
			comboBox_2.setFont(new Font(comboBox_2.getFont().getFontName(),comboBox_2.getFont().getStyle(),15)); 
			txtMotivo.setFont(new Font(txtMotivo.getFont().getFontName(),txtMotivo.getFont().getStyle(),15)); 

			btnSiguiente.setFont(new Font(btnSiguiente.getFont().getFontName(),btnSiguiente.getFont().getStyle(),15)); 

			
		}
	}
	
}
